package chixing.day10.homework;

public class Outer {
    private String message = "hello";

    class Inner{//成员内部类，要用对象调用
        public void printMessage(){
            System.out.println(Outer.this.message);
        }
    }

    public static void main(String[] args) {
        Outer outer = new Outer();
        Inner inner = outer.new Inner();
        inner.printMessage();
    }
}
